package tjs.study.jdk11.service;


import tjs.study.jdk11.bean.mypublic.UserJdkInfoPublic;

/**
 * Created by Nicky.Tang on 2021/9/21 3:35 下午
 *
 * @since 02.12.10
 */
public class UserJdkService {
    public void login() {
        UserJdkInfoPublic userJdkInfoPublic = new UserJdkInfoPublic();
        try {
            Class<?> userJdkInfoPrivateClass = Class.forName("tjs.study.jdk11.bean.myprivate.UserJdkInfoPrivate");
            Object userJdkInfoPrivate = userJdkInfoPrivateClass.getDeclaredConstructor().newInstance();
        } catch (Exception ex) {
            ex.printStackTrace();//does not export tjs.study.jdk11.bean.myprivate to module jdk11.service
        }
        System.out.println("(service模块) 调用service.login...");
    }
}
